﻿@{
    var requierd = string.Empty;
    if(Model.ExtendRuleValues!=null && Model.ExtendRuleValues.Count > 0)
    {
        var listrulevalues= Model.ExtendRuleValues as List<InputStyleRule>;
        var requiredModel= listrulevalues.Where(a => a.Type== ValidateType.Required.ToString()).FirstOrDefault();
        if (requiredModel!=null)
        {
            requierd = requiredModel.Message;
        }
    }
  <div class="layui-form-item">
                <label class="layui-form-label @(!string.IsNullOrEmpty(requierd)?"layui-form-required":"")">@Model.DisplayName</label>
                <div class="layui-input-block">
                    <div class="layui-upload">
                        <button type="button" class="pear-btn pear-btn-md" id="mul_@Model.AttributeName"><i class="icon pear-icon pear-icon-upload"></i>图片上传</button>
                        <label style="color:orangered;">请上传png、jpg、jpeg图片且大小不超过4M 。</label>
                        <blockquote class="layui-elem-quote layui-quote-nm" style="margin-top: 10px;">
                            预览图：
                    <div class="layui-upload-list uploader-list zoomImgBox" id="uploader_list_@Model.AttributeName">
                                
                            </div>
                        </blockquote>
                    </div>
                </div>
            </div>
}
